package com.bluefuture.modules.app.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 注册表单
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@ApiModel(value = "注册表单")
public class RegisterForm {

    @ApiModelProperty(value = "用户名")
//    @NotBlank(message = "用户名不能为空")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "密码")
    @NotBlank(message="密码不能为空")
    private String password;

    @ApiModelProperty(value = "密码")
    @NotBlank(message="验证码不能为空")
    private String verifyCode;

    @ApiModelProperty(value = "头像")
    private String photo;

    @ApiModelProperty(value = "注册方式（1-手机号，2-邮箱")
    @NotNull(message="注册方式不能为空")
    private Integer registerType;

    @ApiModelProperty(value = "身份类型（1-投资人，2-创业者，3-人才）")
    @NotNull(message="身份类型不能为空")
    private Integer type;

}
